﻿@model ILayoutModel
@{
    var content = new PlaceHolder();

    foreach (var item in Model.MasterPageSelectors)
    {
        content.AddControls
        (
            new Anchor("none")
                .SetHref(item.ActionPath)
                .SetTitle(GetLocalized(item.ImageAlterName))
                .SetTarget(item.TargetWindowName)
                .AddControls
                (
                    new Image(item.ImagePath)
                        .SetAlt(GetLocalized(item.ImageAlterName))
                        .SetAttribute(Attr.Style, "width:24px;height:24px;")
                )
        );
    }
}
@AddControls(content)